// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-padding-top: 120px; /* height of sticky header */
    }
}

.c-page-header {
    background-color: $browser-background;
    border-bottom: $border-black;

    @media (prefers-reduced-motion: no-preference) {
        position: sticky;
        top: 0;
        z-index: 15;
    }
}

.c-page-header-logo-fx {
    @include image-replaced;
    margin: 0;
    width: 60px;
    height: 60px;
    background: transparent url('/media/protocol/img/logos/firefox/browser/logo.svg') center left no-repeat;
    background-size: contain;

    @media #{$mq-sm} {
        width: 180px;
        height: 60px;
        background-image: url('/media/img/firefox/nothing-personal/firefox-by-mozilla-wordmark.svg');
    }
}

.c-page-header-inner {
    align-items: center;
    display: grid;
    padding: $spacing-md;
    grid-template-columns: 60px 1fr;
    gap: 0 $spacing-md;

    .cta-group {
        justify-self: end;

        p {
            display: none;
        }
    }

    @media #{$mq-sm} {
        grid-template-columns: 180px 1fr;
    }
}

@media #{$mq-lg} {
    .c-page-header-inner {
        .cta-group {
            align-items: center;
            display: flex;
            justify-self: end;

            p {
                display: block;
                font-family: 'Fira Mono', 'Andale Mono', monospace;
                font-weight: 500;
                margin: 0 $spacing-md 0 0;
                @include text-body-lg;
            }
        }
    }
}
